name = 'jack'

def f1():
    print(name)

def f2():
    name = 'mary'
    f1()
    f3()

def f3():
    print(name)


f2()  # jack



#a = 10
#def test():
#    a += 1 # 直接报错
#    print(a)
#test()


